-- GENERATED SPELL FOR [Hakkari Priest] --


function spell0_11830(pUnit, Event) --@Anti-Magic Shield,Self--
pUnit:FullCastSpellOnTarget(24021,pUnit)
pUnit:RegisterEvent('Sorts_11830', 8317, 1)
end

function spell1_11830(pUnit, Event) --@Cleanse Nova,Self--
pUnit:FullCastSpellOnTarget(24022,pUnit)
pUnit:RegisterEvent('Sorts_11830', 619, 1)
end

function spell2_11830(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(22883,pUnit)
pUnit:RegisterEvent('Sorts_11830', 3500, 1)
end

function spell3_11830(pUnit, Event) --@Psychic Scream,Self--
pUnit:FullCastSpellOnTarget(13704,pUnit)
pUnit:RegisterEvent('Sorts_11830', 6297, 1)
end

function Sorts_11830(pUnit, Event)
local choix_sorts_11830 = math.random(0, 3)
if choix_sorts_11830 == 0 then
pUnit:RegisterEvent('spell0_11830', 1, 1)
end
if choix_sorts_11830 == 1 then
pUnit:RegisterEvent('spell1_11830', 1, 1)
end
if choix_sorts_11830 == 2 then
pUnit:RegisterEvent('spell2_11830', 1, 1)
end
if choix_sorts_11830 == 3 then
pUnit:RegisterEvent('spell3_11830', 1, 1)
end
end

function mob11830_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11830', math.random(1500, 3000), 1)
end

function mob11830_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11830_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11830_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11830, 1, 'mob11830_Action')
RegisterUnitEvent(11830, 2, 'mob11830_Leave')
RegisterUnitEvent(11830, 3, 'mob11830_Kill')
RegisterUnitEvent(11830, 4, 'mob11830_Die')
